package com.demo.mapper;

import com.demo.domain.BookInfo;

import java.util.List;

/**
 * mapper接口用所有方法声明对应是mapper映射文件中操作语句对应id
 */
public interface BookMapper {
    int addBook(BookInfo bookInfo);
    int deleteBook(Long bookId);
    int updateBook(BookInfo book);
    int updateBookPart(BookInfo book);
    BookInfo getBook(Long bookId);
    List<BookInfo> listBook();
}
